package com.xun.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * @Package: com.xun.bean
 * @ClassName: User
 * @Author: Think
 * @CreateTime: 2021/6/15 15:40
 * @Description:
 */
@Data
@TableName("zx_user")
public class User {

    @TableId
    private Long userId;
    private String userName;
    private Integer age;
    private String userEmail;

    // 审计字段
    @TableField(fill = FieldFill.INSERT)
    private String createBy;
    @TableField(fill = FieldFill.INSERT)
    private Date createDate;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;

    // 逻辑删除，0-未删除，1-已删除
    @TableLogic(value = "0", delval = "1")
    private Integer deleted;

}
